package cn.maihe.elg.operation.common;


import cn.maihe.elg.operation.model.vo.system.CaptchaVO;

import java.util.concurrent.ConcurrentHashMap;

/**
 * @Description
 * @Author caixh
 * @Date 2021/6/7.
 */
public class Constants {

    public final static String CAPTCHA_KEY = "captchKey";

    public static ConcurrentHashMap<String, CaptchaVO> CAPTCHA_HASHMAP = new ConcurrentHashMap();

    public static final Long CENTER_ID = 1L;
    public static final Long ORG_ID = 1L;
    public static final Long INSTITUTION_ID = 1L;

    public static final String REGIST_IMAGE_PATH = "regist/";

    // verify ssl certificate (true) or do not verify (false)
    public static final boolean DO_VERIFY = false;

    public static final String HTTPS = "HTTPS";
    public static final String TRUST_MANAGER_FACTORY = "SunX509";
    public static final String GM_PROTOCOL = "GMTLS";
    public static final String INTERNATIONAL_PROTOCOL = "TLSv1.2";
    public static final String SIGNATURE_ALGORITHM_SDK_HMAC_SHA256 = "SDK-HMAC-SHA256";
    public static final String SIGNATURE_ALGORITHM_SDK_HMAC_SM3 = "SDK-HMAC-SM3";
    public static final String[] SUPPORTED_CIPHER_SUITES = {"TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384",
            "TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256", "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256",
            "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"};
    public static final String SECURE_RANDOM_ALGORITHM_NATIVE_PRNG_NON_BLOCKING = "NativePRNGNonBlocking";

    public static final String DEFAULT_BIDDER_PWD = "A123X456B";

    public static final String DEFAULT_SERVICE_PHONE = "15105003959";
}
